package com.dc.datacollect.web;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;

@Controller
public class TabController {
    @Value("${spring.servlet.multipart.max-file-size:''}")
    private String maxFileSize;

    @RequestMapping({"/manage/home"})
    public String home() {
        return "manage/home";
    }
    @RequestMapping("/user/waitSubmit")
    public String waitSubmit (Model model) {
        model.addAttribute("maxFileSize",maxFileSize);
        return "manage/user/waitSubmit";
    }
    @RequestMapping("/user/submitted")
    public String submitted () {
        return "manage/user/submitted";
    }
    @RequestMapping("/user/rejected")
    public String rejected () {
        return "manage/user/rejected";
    }
    @RequestMapping("/user/completed")
    public String completed () {
        return "manage/user/completed";
    }
    @RequestMapping("/user/joinGroup")
    public String joinGroup () {
        return "manage/user/joinGroup";
    }


    @RequestMapping("/collector/collectTableManage")
    public String collectionTableManage () {
        return "manage/collector/collectTableManage";
    }
    @RequestMapping("/collector/process")
    public String process () {
        return "manage/collector/process";
    }
    @RequestMapping("/collector/groupManage")
    public String groupManage () {
        return "manage/collector/groupManage";
    }

}
